package main

import (
	"golog-api/config"
	"golog-api/router"
)

func main() {
	//初始化配置
	config.InitConfig()
	r := router.SetupRouter()
	port := config.AppConfig.App.Port
	if port == "" {
		port = ":2301"
	}
	//启动路由
	r.Run(port)
}
